<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>用户登录</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html,
        body {
            font-family: "微软雅黑,宋体";
            width: 100%;
            height: 100%;
            overflow: hidden;
        }

        .main-body {
            width: 100%;
            height: 100%;
            background-image: linear-gradient(#aef0d2, #32c1cf);
            position: relative;
            padding-top: 200px;
        }

        h3 {
            font-size: 24px;
            font-weight: 500;
            line-height: 1.1;
            text-align: center;
        }

        hr {
            margin-bottom: 20px;
            margin-top: 20px;
            border: 0;
            border-top: 1px solid #eee;
        }

        .container {
            padding: 0 15px;
            margin: 0 auto;
        }

        .login-area {
            margin-left: 50%;
            transform: translateX(-100%);
            transition: all .5s;
        }

        .form-group {
            margin-bottom: 15px;
        }

        .form-control {
            display: block;
            width: 100%;
            height: 34px;
            padding: 6px 12px;
            font-size: 14px;
            line-height: 1.45;
            color: #555555;
            border-color: #ffffff;
            background-image: none;
            border: 1px solid #cccccc;
            border-radius: 4px;
        }

        .btn-block {
            display: block;
            width: 100%;
            color: #ffffff;
            background-color: #337ab7;
            border-color: #2e6da4;
            text-align: center;
            cursor: pointer;
            line-height: 1.45;
            border-radius: 4px;
            padding: 6px 12px;
            border: 1px solid transparent;
        }

        .btn-block:hover {
            background-color: #286090;
        }

        @media (min-width: 1200px) {
            .container {
                width: 1170px;
            }

            .login-area {
                width: 430px;
            }
        }

        @media screen and (min-width: 992px) and (max-width: 1200px) {
            .container {
                width: 970px;
            }

            .login-area {
                width: 42%;
            }
        }

        @media (max-width: 768px) {
            .container {
                width: 750px;
            }

            .login-area {
                width: 42%;
            }
        }
    </style>
</head>

<body>
    <div class="main-body">
        <div class="container">
            <div class="login-area">
                <form action="/login" method="post">
                    <div
                        style="position: relative;padding: 30px;background-color: rgba(255, 255, 255, 0.623);border-radius: 5px;">
                        <h3>用户登录</h3>
                        <hr />
                        <div class="form-group">
                            <input type="text" class="form-control" id="username" name="username" placeholder="用户名"
                                required autofocus>
                        </div>
                        <div class="form-group">
                            <input type="password" class="form-control" id="password" name="password" placeholder="密码"
                                required>
                        </div>
                        <div class="form-group">
                            <button type="submit" class="btn btn-primary btn-block">登录</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</body>

</html>